package cn.teduymdj.jxc.pojo.entity;


import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 日志实体
 * @version 1.0
 *
 */
@Data
public class Log implements Serializable{

	public static final String LOGIN_ACTION = "登录操作";
	
	public static final String LOOUT_ACTION = "登出操作";
	
	public static final String SELECT_ACTION = "查询操作";
	
	public static final String INSERT_ACTION = "新增操作";
	
	public static final String UPDATE_ACTION = "修改操作";
	
	public static final String DELETE_ACTION = "删除操作";
	
	public Log() {
		super();
	}

	public Log(String type, String content) {
		super();
		this.type = type;
		this.content = content;
	}


	private Long id; // 编号

	private Integer enable;//是否启用,1=启用,0=未启用

	private LocalDateTime gmtCreate;//数据创造时间

	private LocalDateTime gmtModified;//数据最后修改时间
	

	private String type;//操作类型


	private String content;//操作内容
	

	private User user;//操作人
	
	//设置数据表字段类型为datetime类型
	private LocalDateTime date;//操作时间




}
